package com.dily.scaffold.context.security;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Date: 2022-06-10 星期五
 * Time: 10:14
 * Author: Dily_Su
 * Remark:
 * 按需引入：启用 @EnableConfigurationProperties(JwtProperties.class)
 */
//@Component   全局注入
@Data
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {
	/**
	 *  验证地址
	 */
	private String authUrl;

	/**
	 *  HS256 key
	 */
	private String secret;

	/**
	 *  token过期时间，单位：毫秒
	 */
	private long expire = 600 * 1000;

}
